#Check whether a table with a given name exists
idaExistTable('DB2INST1.SHOWCASE_SYSTEMS')
#Create a pointer to the table
bdf <- ida.data.frame('DB2INST1.SHOWCASE_SYSTEMS')
#Obtain a unique table name for the copy
copyTableName <- idaGetValidTableName(prefix = "COPY_")
#Create a copy of the original table
bdfCopy <-
as.ida.data.frame(as.data.frame(bdf),copyTableName,clear.existing=TRUE, case.sensitive=TRUE)
#Delete the copy
idaDeleteTable(copyTableName)Run the code above in your browser using DataLab